<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        body,
        ul,
        li {
            margin: 0px;
            padding: 0px;
        }
        
        li {
            list-style: none;
        }
        
        nav {
            height: 50px;
            margin-top: 30px;
            border-top: 1px solid #666;
        }
        
        .nav-con {
            width: 1000px;
            margin: 0px auto;
        }
        
        .nav-con ul li {
            float: left;
            height: 55px;
            padding: 0 30px;
        }
        
        .nav-con ul li a {
            display: inline-block;
            height: 55px;
            font: 18px/55px 微软雅黑;
            text-decoration: none;
            color: #000;
        }
        
        a:hover {
            color: green;
        }
    </style>
</head>

<body>
    <div class="nav">
        <div class="nav-con">
            <ul>
                <li>
                    <a href="#">智能手机</a>

                </li>
                <li>
                    <a href="#">平板电脑</a>
                </li>
                <li>

                    <a href="#">百度</a>
                </li>
                <li>
                    <a href="#">哆啦猫</a>
                </li>
            </ul>

        </div>
    </div>
</body>

</html>